// 请求参数
export type AuxiliaryDataParams = SearchParams & PageCommonParams;

export interface SearchParams {
    auxiliaryResourceCoding?: string;
    auxiliaryResourceName?: string;
    creator?: string;
    status?: string;
    dataSource?: string;
    beginTime?: string;
    endTime?: string;
    type?: string;
}

// 响应参数
export type AuxiliaryDataResponse = ResponseListCommon<AuxiliaryData>;

export interface AuxiliaryData {
    id: string;
    auxiliaryResourceCoding: string;
    auxiliaryResourceName: string;
    type: 'MOULD' | 'WORK_CLOTH' | 'TOOL';
    status: 'IDLE' | 'USING' | 'REPAIRING' | 'SCRAP';
    dataSource: 'EXCEL' | 'ARTIFICIAL';
    creator: string;
    description: string;
    createTime: string;
    updateTime: string;
    auxiliaryId?: number;
}

// 新增 || 编辑辅助资源

export interface AddAuxiliaryData {
    id?: number;
    auxiliaryResourceCoding: string;
    auxiliaryResourceName: string;
    type: 'MOULD' | 'WORK_CLOTH' | 'TOOL';
    status: 'IDLE' | 'USING' | 'REPAIRING' | 'SCRAP';
    description: string;
}
